package com.wdd.web.defaultt.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
/**
 * fremaker模板引擎和
 * @author wdd_think
 *
 */
@Controller
public class FreeMarkerTestController {
	@GetMapping("/index")
    public String index(Map<String,String> map) {
		map.put("name", "张三");
		
        return "index";
	}
	
	@GetMapping("/testExp")
    public String testExp(Map<String,String> map) {
		map.put("name", "张三");
		System.out.println(1/0);//测试全局异常
        return "index";
    }
}
